﻿using System;
using EasyStep.TestExecution.Data;
using EasyStep.TestExecution.Interfaces;
using ArtOfTest.WebAii.Core;
using EasyStep.Attributes;



namespace EasyStep.TestActions.Actions.Click
{
    [TestAction(typeof(Click), Name = "ByClassName", RequireData = false)]
    class ClickByClassName : ITestAction<Manager>
    {

        public void Execute(Manager browser, TestStepResult data, IExecuteDataContext context)
        {
            String element = "class=" + data.ToString();
            browser.ActiveBrowser.Actions.Click(
                browser.ActiveBrowser.Find.ByAttributes(element)
            );
        }
    }
}